package com.wispx.gateway.core.filter.loadblance.strategy;

import com.wispx.gateway.config.pojo.ServiceInstance;
import com.wispx.gateway.core.context.GatewayContext;

import java.util.List;

/**
 * 负载均衡策略
 */
public interface LoadBalanceStrategy {

    ServiceInstance selectInstance(GatewayContext context, List<ServiceInstance> instances);

    String mark();
}
